package com.world.cat.model.sys;

import com.world.cat.enums.FileType;
import com.world.common.generate.auto.QField;
import com.world.common.model.BaseEntity;

import javax.persistence.*;

/**
 * Created by gang on 2017/3/22.
 */
//实体与上传文件关联表
@Entity
@Table(name = "sys_upload_relation")
public class UploadRelation extends BaseEntity {
    @QField(name = "文件类型")
    @Column(name = "file_type")
    @Enumerated(EnumType.STRING)
    private FileType fileType;

    @QField(name = "实体id")
    @Column(name = "obj_id")
    private String objId;//实体类物理id

    @QField(name = "文件id")
    @Column(name = "file_id")
    private String fileId;//上传文件的物理id

    public FileType getFileType() {
        return fileType;
    }

    public void setFileType(FileType fileType) {
        this.fileType = fileType;
    }

    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
}
